package com.shlh.saas.service.facebook.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shlh.saas.entity.facebook.FacebookMatchRecord;
import com.shlh.saas.mapper.FacebookMatchRecordMapper;
import com.shlh.saas.service.facebook.FacebookMatchRecordService;
import org.springframework.stereotype.Service;

/**
 * Facebook匹配记录Service实现类
 */
@Service
public class FacebookMatchRecordServiceImpl extends ServiceImpl<FacebookMatchRecordMapper, FacebookMatchRecord> 
        implements FacebookMatchRecordService {

    @Override
    public Page<FacebookMatchRecord> getUserMatchRecords(Long userId, Integer pageNum, Integer pageSize) {
        Page<FacebookMatchRecord> page = new Page<>(pageNum, pageSize);
        return baseMapper.selectPageByUserId(page, userId);
    }
} 